<template>
  <a-card v-show='isGradeLableStatus'>
    <j-form-container :disabled="formDisabled">
      <a-form-model ref="form" :model="model" slot="detail">
        <a-row>
          <a-col :span="6">
            <a-form-model-item label="年级编码"  prop="gradeCode">
              <a-input v-model="model.gradeCode" placeholder="请输入年级编码"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="6">
            <a-form-model-item label="年级名称" prop="gradeName">
              <a-input v-model="model.gradeName" placeholder="请输入年级名称"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="6">
            <a-form-model-item label="年级阶段"  prop="gradeStage">
              <a-input-number v-model="model.gradeStage" placeholder="请输入年级阶段" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="6">
            <a-form-model-item label="下一年级编码" prop="gradeNextCode">
              <a-input v-model="model.gradeNextCode" placeholder="请输入下一年级编码"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="6">
            <a-form-model-item label="排序"  prop="gradeOrder">
              <a-input-number v-model="model.gradeOrder" placeholder="请输入排序" style="width: 100%" />
            </a-form-model-item>
          </a-col>
        </a-row>
      </a-form-model>
    </j-form-container>
  </a-card>
</template>

<script>

  import { httpAction, getAction } from '@/api/manage'
  import { validateDuplicateValue } from '@/utils/util'

  export default {
    name: 'CouGradeLable',
    components: {
    },
    props: {
      isGradeLableStatus: {
        type: Boolean,
        default: false,
        required: false
      }
    },
    data () {
      return {
        disableMixinCreated : true, //默认初始状态不加载数据
        model:{
         },
        formDisabled: true,
        url: {
          queryById: "/grade/couGrade/queryById"
        }
      }
    },
    computed: {

    },
    created () {
       //备份model原始值
      this.modelDefault = JSON.parse(JSON.stringify(this.model));
    },
    methods: {

    }
  }
</script>